<?php include_once 'includes/header.php'; ?><div id="wrap"><div id="main"><div class="top"></div>
    <div id="mainarea">
      <h2 class="title">
      <span class="floatleft">上传图片</span>
      <span class="floatright"><a href="space.jhtml?uid=42584&amp;do=album&amp;view=me" style="font-size:12px;float:right;padding-top:5px;" class="bluecolor">&lt;&lt;返回相册</a></span>
      <div class="clear"></div>
      </h2>
      
      <div class="c_form"> 
        <table cellspacing="0" cellpadding="0" class="formtable">
          <caption>
          <h2>
          <span class="floatleft">选择图片</span>
          <span class="floatright"><a href="cp.jhtml?ac=upload&amp;op=flash&amp;albumid=0" style="padding-top:5px;" class="r_option">试试批量上传</a></span>
          <div class="clear"></div>
          </h2>
          <p>从电脑中选择你要上传的图片。<br>
            提示：选择一张图片后，你可以继续选择下一张图片，这样就可以一次上传多张图片了。</p>
          </caption>
          <tbody id="attachbodyhidden" style="display:none">
            <tr>
              <td><form method="post" id="upload" action="cp.jhtml?ac=upload" enctype="multipart/form-data" target="uploadframe">
                  <input type="file" name="attach" size="25" style="padding:10px;">
                  <span id="localfile"></span>
                  <input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true">
                  <input type="hidden" name="albumid" id="albumid" value="0">
                  <input type="hidden" name="topicid" id="topicid" value="0">
                  <input type="hidden" name="formhash" value="5e5eb8de">
                </form></td>
            </tr>
          </tbody>
          <tbody id="attachbody">
            <tr>
              <td><form method="post" id="upload_0" action="cp.jhtml?ac=upload" enctype="multipart/form-data" target="uploadframe">
                  <input type="file" name="attach" size="25" style="padding-top: 10px; padding-right: 10px; padding-bottom: 10px; padding-left: 10px; display: none; " id="attach_0">
                  <span id="localfile_0">
                  <div class="borderbox">
                    <table cellspacing="0" cellpadding="0" border="0">
                      <tbody>
                        <tr>
                          <td>2.jpg&nbsp;<span id="showmsg0"><a href="javascript:;" onclick="delAttach(0)">[删除]</a></span><br>
                            图片描述:<br>
                            <textarea name="pic_title" cols="40" rows="2"></textarea></td>
                        </tr>
                      </tbody>
                    </table>
                  </div>
                  </span>
                  <input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true">
                  <input type="hidden" name="albumid" id="albumid_0" value="0">
                  <input type="hidden" name="topicid" id="topicid_0" value="0">
                  <input type="hidden" name="formhash" value="5e5eb8de">
                </form></td>
            </tr>
            <tr>
              <td><form method="post" id="upload_1" action="cp.jhtml?ac=upload" enctype="multipart/form-data" target="uploadframe">
                  <input type="file" name="attach" size="25" style="padding:3px;" id="attach_1">
                  <span id="localfile_1"></span>
                  <input type="hidden" name="uploadsubmit" id="uploadsubmit" value="true">
                  <input type="hidden" name="albumid" id="albumid_1" value="0">
                  <input type="hidden" name="topicid" id="topicid_1" value="0">
                  <input type="hidden" name="formhash" value="5e5eb8de">
                </form></td>
            </tr>
          </tbody>
        </table>
        <script>

	no_insert = 1;
	function a_addOption() {
		var obj = $('uploadalbum');
		obj.value = 'addoption';
		addOption(obj);
	}
	function album_op(id) {
		$('selectalbum').style.display = 'none';
		$('creatalbum').style.display = 'none';
		$(id).style.display = '';
	}
</script> 
        <script src="source/script_upload.js" type="text/javascript"></script> 
        <script src="source/jquery-1.4.4.min.js" type="text/javascript"></script>
        <iframe id="uploadframe" name="uploadframe" width="0" height="0" marginwidth="0" frameborder="0" src="about:blank"></iframe>
        <form method="post" id="albumform" action="cp.jhtml?ac=upload" target="uploadframe">
          <table cellspacing="0" cellpadding="0" class="formtable">
            <caption>
            <h2>
              <input type="radio" id="albumop_selectalbum" name="albumop" value="selectalbum" checked="" onclick="album_op(this.value);">
              <label for="albumop_selectalbum">添加到现有相册</label>
              &nbsp;
              <input type="radio" id="albumop_creatalbum" name="albumop" value="creatalbum" onclick="album_op(this.value);">
              <label for="albumop_creatalbum">新建一个相册</label>
            </h2>
            </caption>
            <tbody id="selectalbum">
              <tr>
                <td><table width="100%">
                    <tbody>
                      <tr>
                        <th width="60">选择相册</th>
                        <td><select name="albumid" id="uploadalbumid">
                            <option value="2145">我的相册</option>
                            <option value="2416">我的相册2</option>
                            <option value="2450">我的相册3</option>
                            <option value="2451">我的相册3</option>
                            <option value="2452">我的相册3</option>
                          </select></td>
                      </tr>
                    </tbody>
                  </table></td>
              </tr>
            </tbody>
            <tbody id="creatalbum" style="display:none;">
              <tr>
                <td><table width="100%">
                    <tbody>
                      <tr>
                        <th width="60">相册名</th>
                        <td><input type="text" class="t_input" size="20" id="uploadalbumname" name="albumname" value="我的相册6"></td>
                      </tr>
                      <tr>
                        <th>隐私设置</th>
                        <td><select name="friend" id="uploadfriend" onchange="passwordShow(this.value);">
                            <option value="0">全站用户可见</option>
                            <option value="1">全好友可见</option>
                            <option value="2">仅指定的好友可见</option>
                            <option value="3">仅自己可见</option>
                            <option value="4">凭密码查看</option>
                          </select>
                          <span id="span_password" style="display:none;">密码:
                          <input type="text" id="uploadpassword" name="password" value="" size="10">
                          </span></td>
                      </tr>
                    </tbody>
                    <tbody id="tb_selectgroup" style="display:none;">
                      <tr>
                        <th>指定好友</th>
                        <td><select name="selectgroup" onchange="getgroup(this.value);">
                            <option value="">从好友组选择好友</option>
                            <option value="0">其他</option>
                            <option value="1">通过本站认识</option>
                            <option value="2">通过活动认识</option>
                            <option value="3">通过朋友认识</option>
                            <option value="4">亲人</option>
                            <option value="5">同事</option>
                            <option value="6">同学</option>
                            <option value="7">不认识</option>
                            <option value="369">天天</option>
                          </select>
                          多次选择会累加到下面的好友名单</td>
                      </tr>
                      <tr>
                        <th>&nbsp;</th>
                        <td><textarea name="target_names" id="target_names" style="width:85%;" rows="3"></textarea>
                          <br>
                          (可以填写多个好友名，请用空格进行分割)</td>
                      </tr>
                    </tbody>
                  </table></td>
              </tr>
            </tbody>
            <tbody>
              <tr>
                <td><br>
                  <input type="hidden" name="albumsubmit" id="albumsubmit" value="true">
                  <input type="hidden" name="topicid" value="">
                  <input type="submit" name="uploadsubmit" id="btnupload" value="开始上传" class="submit"></td>
              </tr>
            </tbody>
          </table>
          <input type="hidden" name="tagid" id="tagid" value="">
          <input type="hidden" name="albumid" id="albumid" value="0">
          <input type="hidden" name="qz" id="qz" value="">
          <input type="hidden" name="formhash" value="5e5eb8de">
        </form>
        <form method="post" id="albumresultform" action="cp.jhtml?ac=upload" class="c_form">
          <input type="hidden" name="opalbumid" id="opalbumid" value="0">
          <input type="hidden" name="topicid" id="optopicid" value="0">
          <input type="hidden" name="viewAlbumid" id="viewAlbumid" value="true">
          <input type="hidden" name="formhash" value="5e5eb8de">
        </form>
      </div>
    </div>
    <div class="bot"></div>
  </div>
  <?php include_once 'includes/sidebar_homepage_personal.php'; ?>
</div>
<?php include_once 'includes/footer.php'; ?>
